/*
 * Unions
 */
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <limits.h>

union {
	double dbl;
	unsigned long long lng;
} lol;

void
print_binary(unsigned long long a)
{
	register int i = sizeof(unsigned long long) * CHAR_BIT;
	while (i-- > 0)
		putchar(a & (1ull << i)  ? '1' : '0');
	putchar('\n');
}

int
main(int argc, char **argv)
{
	char line[128];

	while (fgets(line, 128, stdin)) {
		if (line[0] == 'd')
			(void) sscanf(&line[2], "%lf", &lol.dbl);
		else if (line[0] == 'l')
			(void) sscanf(&line[2], "%llu", &lol.lng);
		else {
			(void) printf("what was that?\n");
			continue;
		}

		print_binary(lol.lng);
	}
	puts("Leaving so soon?");
	return 0;
}
